package router

import (
	"geek-homework/week04/internal/service"
	"github.com/gin-gonic/gin"
	"github.com/google/wire"
)

var ProviderSet = wire.NewSet(NewRouter)

func NewRouter(userService *service.UserService) *gin.Engine {
	router := gin.Default()
	publicGroup := router.Group("")
	{
		initUserRouter(publicGroup, userService)
	}
	return router
}
